package cluster_node.scheduler.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class DemoJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String helloMessage =
                (String) jobExecutionContext.getJobDetail().getJobDataMap().getOrDefault("message", "default hello");
        System.out.println(helloMessage);
    }
}
